import java.awt.Color;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

/*
 * A simple class that draws circles
 * */
public class CircleGraphic {
	private Color color;
	private int radius;
	private String name;
	int x = 100;
	int y = 100;
	int textOffSet;
	Font font;
	
	public CircleGraphic(String n, int r, Color c){
		name = n;
		radius = r;
		color = c;
		textOffSet = radius/4;
		font = new Font("Arial", Font.PLAIN, 3*radius/4);
	}
	public void draw(Graphics g, int x, int y){
		g.setColor(color);
		g.fillArc(x, y, radius, radius, 0, 360); //x and y based on location
		g.setColor(Color.BLACK);
		g.setFont(font);
		g.drawString(name, x + textOffSet, y + 3* textOffSet);
	}
}
